package homework0306;

import java.io.File;
import java.util.Scanner;

public class Text03 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入您要操作的目录");
        String s=scan.nextLine();
        File file=new File(s);
        if (file.exists()){
            System.out.println("该项目已存在");
        }else {
            file.mkdirs();
            System.out.println("创建成功");
        }
    }
}
